import initial
import select_Generation


def select_by_name():
    family = initial.get_family()
    name = input('请输入想要查询的人的姓名\n>>>')
    for i in family:
        if name == i.name:
            select_Generation.showInfo(i)
            for j in i.kids:
                print('子:' + j.name)
